//
//  SMUserInfoModel.h
//  SaveMoney
//
//  Created by user on 2018/11/27.
//  Copyright © 2018年 Sunflower. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface SMUserInfoModel : NSObject

/** 用户标识 */
@property (nonatomic, copy) NSString *userKey;
/** 是否登录 */
@property (nonatomic, copy) NSString *isLogin;
/** 添加时间 */
@property (nonatomic, copy) NSString *addtime;
/** 头像 */
@property (nonatomic, copy) NSString *avatar;
/** 邮箱 */
@property (nonatomic, copy) NSString *email;
/** 名称 */
@property (nonatomic, copy) NSString *nickName;
/** 用户名 */
@property (nonatomic, copy) NSString *phone;
/** 密码 */
@property (nonatomic, copy) NSString *password;

/** 用户名 */
@property (nonatomic, copy) NSString *oldPhone;
/** 密码 */
@property (nonatomic, copy) NSString *oldPassword;

/** 成功上线 */
@property (nonatomic, copy) NSString *isSuccess;

+ (instancetype)sharedStorage;

- (void)save;
- (void)clear;

- (NSString *)stringForKey:(NSString *)key;
- (void)saveString:(NSString *)object forKey:(NSString *)key;

@end

NS_ASSUME_NONNULL_END
